# -*- coding: utf-8 -*-
'''
Created on August 19, 2013

@author: Tong Zhang

Config file
'''

# Logger config
LOG_NAME = 'et.kernel.tcp'
LOG_FILE_LOCATION = '/home/zhangtong/log/et_tcp_debug.log'#'/home/zhangtong/log/et_tcp_debug.log'
LOG_FILE_GENERATE_MEASURE = 'M' # S - second, M - minute, H - hour, D - day, W - week
LOG_FILE_GENERATE_INTERVAL = 1  # every one measure
LOG_FILE_BACKUP_COUNT = 60      # save recent 60 copies
LOG_OUTPUT_FORMATTER = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'

# DB config

MYSQLHOST = "192.168.1.101"  # "etlinkingdb.mysql.rds.aliyuncs.com"
MYSQLUSER = "admin"          # et_dba
MYSQLPWD = "admin"           # 
MYSQLDBNAME = "et_device_init"

'''
MYSQLHOST = "etlinkingdb.mysql.rds.aliyuncs.com"
MYSQLUSER = "et_dba"
MYSQLPWD = "1tLiNk1nG_1tG0"          
MYSQLDBNAME = "et_device_init"
'''
#Redis config

REDISHOST = "192.168.1.101"  # 42.121.54.224
REDISPORT = 6379
REDISDB = 3

'''
REDISHOST = "42.121.54.224"
REDISPORT = 6379
REDISDB = 3
'''
